<?php

declare(strict_types=1);

namespace App\Amqp\Consumer;

use App\Service\Client\TaskEmployerService;
use Hyperf\Amqp\Annotation\Consumer;
use Hyperf\Amqp\Message\ConsumerMessage;
use Hyperf\Di\Annotation\Inject;

/**
 * 悬赏主 审核倒计时快到期限提醒
 * @Consumer(exchange="taskAuditWait", routingKey="taskAuditWait", queue="taskAuditWaitConsumer", name ="TaskAuditWaitConsumer", nums=1)
 */
class TaskAuditWaitConsumer extends ConsumerMessage
{
    /**
     * @Inject()
     * @var TaskEmployerService
     */
    protected $taskEmployerService;

    public function consume($data): string
    {
        return $this->taskEmployerService->taskAuditWait($data);
    }
}
